// -----------------------------------------------------------------------------
// Generate By Furion Tools v1.6.0                            
// -----------------------------------------------------------------------------

using Furion.DatabaseAccessor;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
using System.Collections.Generic;

#nullable disable

namespace iemtm.WeChat.Core
{
    public partial class InWarehouse : IEntity<MasterDbContextLocator>, IEntityTypeBuilder<InWarehouse, MasterDbContextLocator>
    {

        public int InWarehouseId { get; set; }
        public string AreaCode { get; set; }
        public string AreaName { get; set; }
        public int? GeneratorId { get; set; }
        public string GensetNum { get; set; }
        public string Extension { get; set; }
        public int? WareHouseId { get; set; }
        public string WarehouseName { get; set; }
        public string WarehouseAddress { get; set; }
        public DateTime? InWarehouseDate { get; set; }
        public string InWarehousePerson { get; set; }
        public string WarehousePerson { get; set; }
        public string WarehousePersonPhone { get; set; }
        public string HealthCondition { get; set; }
        public bool? BExisting { get; set; }
        public string Remark { get; set; }
        public DateTime? CreateDate { get; set; }
        public string PrjCode { get; set; }
        public string PrjName { get; set; }
        public bool? BIsOut { get; set; }
    
        public void Configure(EntityTypeBuilder<InWarehouse> entityBuilder, DbContext dbContext, Type dbContextLocator)
        {
                entityBuilder.Property(e => e.AreaCode).HasMaxLength(20);

                entityBuilder.Property(e => e.AreaName).HasMaxLength(50);

                entityBuilder.Property(e => e.BIsOut).HasDefaultValueSql("((0))");

                entityBuilder.Property(e => e.CreateDate)
                    .HasColumnType("datetime")
                    .HasDefaultValueSql("(getdate())");

                entityBuilder.Property(e => e.Extension).HasMaxLength(20);

                entityBuilder.Property(e => e.GensetNum).HasMaxLength(50);

                entityBuilder.Property(e => e.HealthCondition).HasMaxLength(20);

                entityBuilder.Property(e => e.InWarehouseDate).HasColumnType("datetime");

                entityBuilder.Property(e => e.InWarehousePerson).HasMaxLength(20);

                entityBuilder.Property(e => e.PrjCode).HasMaxLength(100);

                entityBuilder.Property(e => e.PrjName).HasMaxLength(100);

                entityBuilder.Property(e => e.Remark).HasMaxLength(200);

                entityBuilder.Property(e => e.WarehouseAddress).HasMaxLength(100);

                entityBuilder.Property(e => e.WarehouseName).HasMaxLength(50);

                entityBuilder.Property(e => e.WarehousePerson).HasMaxLength(20);

                entityBuilder.Property(e => e.WarehousePersonPhone).HasMaxLength(20);
        }

    }
}

